#define _CRT_SECURE_NO_WARNINGS 1
#include "Heap.h"

void Heap_test()
{
	HP* heap = (HP*)malloc(sizeof(HP));
	HeapInit(heap);


	HeapPush(heap, 3);
	HeapPush(heap, 1);
	HeapPush(heap, 4);
	HeapPush(heap, 8);
	HeapPush(heap, 7);
	HeapPush(heap, 9);
	HeapPush(heap, 6);

	HeapPrint(heap);
	printf("size: %d\n", heap->size);


	// -----------------------------------------------
	printf("--------------------------------------------\n");

	HeapPop(heap);
	HeapPop(heap);
	HeapPop(heap);
	HeapPop(heap);

	HeapPrint(heap);
	printf("size: %d\n", heap->size);
}




int main()
{
	Heap_test();
	return 0;
}